package my.dao.impl.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import my.dao.DaoException;
import my.dao.RowMapper;

public class IntegerRowMapperImpl implements RowMapper<Integer> {
	
	
	private static IntegerRowMapperImpl instance=new IntegerRowMapperImpl();
	
	public static IntegerRowMapperImpl getInstance(){
		return instance;
	}
	
	private IntegerRowMapperImpl(){}

	public Integer currRow2Obj(ResultSet rs) throws SQLException,
			DaoException {
		
		return rs.getInt(1);
	}

}
